package com.caszx.chargingpile.holder.station;

import android.view.View;
import android.widget.TextView;

import com.app.base.adapter.holder.BaseHolder;
import com.caszx.chargingpile.R;
import com.caszx.chargingpile.entity.EntityTabPlie;

/**
 * Created by Lihao on 2016/1/29.
 */
public class TabListHolder extends BaseHolder<EntityTabPlie> {


    private TextView txt_status ;
    private TextView txt_dc ;
    private TextView txt_ac ;

    public TabListHolder(View view) {
        super(view);
    }

    @Override
    protected void initView() {

        txt_status = (TextView) mRootView.findViewById(R.id.txt_status);
        txt_dc = (TextView) mRootView.findViewById(R.id.txt_dc);
        txt_ac = (TextView) mRootView.findViewById(R.id.txt_ac);
    }

    @Override
    protected void refreshView() {
        txt_status.setText(mItem.status);
        txt_dc.setText("直流   "+mItem.dc);
        txt_ac.setText("交流   "+mItem.ac);

    }
}
